from Cube.command.QCommand import QCmdDataTransfer

CmdSend = QCmdDataTransfer().Send

def CmdSendGet():
    global CmdSend
    return CmdSend


from QObjectBase import QObjectBase, LOCALOBJECTFLAG
from QObjectPool import QObjectPool

def ObjectPoolGet():
    if QObjectBase.ObjectPool is None:
        QObjectBase.ObjectPool = QObjectPool("Main Pool")
    return QObjectBase.ObjectPool

def ObjectPoolRelease():
    QObjectBase.ObjectPool = None
